<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Yii::app()->name;?> 后台管理</title>
<?php $this->renderPartial('application.views._include._header',array('umeditor'=>true,'webuploader'=>1,'datetimepicker'=>1))?>
<style>
    .the{
      width:100%;
      height:40px;
     }
     .zhe{
       text-align: center;  
       margin-bottom: 10px;  
     }
     #conn{
         width:100%;
         height:90%;
         
     }
    
</style>
    

</head>
<body class="view_form" id="view_form_Auction">
    <div id="conn">                
    <p class="the">主题名称：<?php echo $model['subject'];?></p> 
    <p class="the">所属版块：<?php echo $model['name'];?></p>   
    <p class="the">发布人：<?php echo $model['username'];?></p>
    <p class="the">发布时间：<?php echo date("Y-m-d H:i:s",$model['datetime']);?></p>
    <p class="the">内容：<?php echo $model['content'];?> </p>
    
    </div>
                     <?php if($model['invisible']==0){?>
    <div class="zhe">
                          <button class="ui-btn ui-btn-primary" type="button" id="hisb">退回</button>       
                          <button class="ui-btn ui-btn-primary" type="buttom" id="bis">发布</button>
                     
                    </div>
                     <?php
                     }
                     ?>
                  
<script type="text/javascript">
$(function(){
    $("#hisb").click(function(){
       $.ajax({
		url: '<?php echo $this->createUrl('search',array("YII_CSRF_TOKEN"=>Yii::app()->request->csrfToken,"invisible"=>'2','postid'=>$model['postid']));?>', 
                success: function (data) {
                var win = art.dialog.open.origin;
                   win.location.reload();        
              window.close();
	       },
        
        });
    });
    $("#bis").click(function(){
       $.ajax({
		url: '<?php echo $this->createUrl('search',array("YII_CSRF_TOKEN"=>Yii::app()->request->csrfToken,"invisible"=>'1','postid'=>$model['postid']));?>', 
                success: function (data) {
		   var win = art.dialog.open.origin;
                   win.location.reload(); 
                   window.close();	
	       },
        
        
        });
    });
       
});
</script>
<?php $this->renderPartial('/_include/_footer');?></body>
</html>


